package com.zzyl.nursing.controller;


import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.dto.DeviceDataPageReqDto;
import io.swagger.annotations.Api;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zzyl.common.core.controller.BaseController;

import com.zzyl.nursing.service.IDeviceDataService;

/**
 * 设备数据表Controller
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
@RestController
@RequestMapping("/nursing/data")
@Api(tags = "设备数据表的接口")
public class DeviceDataController extends BaseController
{
    @Autowired
    private IDeviceDataService deviceDataService;



    /**
     * 查询设备数据列表
     */
    @PreAuthorize("@ss.hasPermi('elder:data:list')")
    @GetMapping("/list")
    @ApiOperation("查询设备数据列表")
    public TableDataInfo list(DeviceDataPageReqDto deviceDataPageReqDto)
    {
        return deviceDataService.selectDeviceDataList(deviceDataPageReqDto);
    }


}
